﻿using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using Samples.Infrastructure;
using Samples.Infrastructure.Extensions;
using Samples.Modules.ProgressBar.NavigationItems;
using Samples.Modules.ProgressBar.Views;

namespace Samples.Modules.ProgressBar
{
  public class ProgressBarModule : ModuleBase
  {
    public ProgressBarModule( IUnityContainer container, IRegionManager regionManager )
      : base( container, regionManager )
    {
    }

    protected override void InitializeModule()
    {
        RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(ProgressBarIndicatorNavItem));
    }

    protected override void RegisterViewsAndTypes()
    {
      Container.RegisterNavigationType( typeof( ProgressBarView ) );
    }
  }
}
